package org.holynite.fieldmanage.entities

import javax.persistence.EmbeddedId
import javax.persistence.Entity
import javax.persistence.Table

/**
 * Created by midnite on 15/1/15.
 */
@Entity
@Table(name = "locker_customer_type")
class LockerCustomerType {
	@EmbeddedId
	LockerCustomerTypePK lctpk

	boolean equals(o) {
		if (this.is(o)) return true
		if (getClass() != o.class) return false

		LockerCustomerType that = (LockerCustomerType) o

		if (lctpk != that.lctpk) return false

		return true
	}

	int hashCode() {
		return (lctpk != null ? lctpk.hashCode() : 0)
	}
}
